package b.d;

import b.g.b.h.c;
import b.g.b.h.d;
import b.g.b.h.d.a;
import b.g.b.h.f;
import b.g.b.h.h;
import b.g.b.h.l.n;
import java.util.ArrayList;

public final class i {
    /* JADX WARNING: Removed duplicated region for block: B:66:0x0129  */
    /* JADX WARNING: Removed duplicated region for block: B:69:0x0139  */
    /* JADX WARNING: Removed duplicated region for block: B:76:0x0152  */
    /* JADX WARNING: Removed duplicated region for block: B:75:0x014f  */
    /* JADX WARNING: Removed duplicated region for block: B:330:0x0604  */
    /* JADX WARNING: Removed duplicated region for block: B:329:0x0602  */
    /* JADX WARNING: Removed duplicated region for block: B:401:0x073e  */
    /* JADX WARNING: Removed duplicated region for block: B:400:0x073b  */
    /* JADX WARNING: Removed duplicated region for block: B:405:0x0747  */
    /* JADX WARNING: Removed duplicated region for block: B:404:0x0744  */
    /* JADX WARNING: Removed duplicated region for block: B:411:0x075a  */
    /* JADX WARNING: Removed duplicated region for block: B:407:0x074b  */
    /* JADX WARNING: Removed duplicated region for block: B:413:0x075d  */
    /* JADX WARNING: Removed duplicated region for block: B:205:0x0356  */
    /* JADX WARNING: Removed duplicated region for block: B:208:0x0373  */
    /* JADX WARNING: Removed duplicated region for block: B:343:0x0627  */
    /* JADX WARNING: Removed duplicated region for block: B:387:0x06eb  */
    /* JADX WARNING: Removed duplicated region for block: B:400:0x073b  */
    /* JADX WARNING: Removed duplicated region for block: B:401:0x073e  */
    /* JADX WARNING: Removed duplicated region for block: B:404:0x0744  */
    /* JADX WARNING: Removed duplicated region for block: B:405:0x0747  */
    /* JADX WARNING: Removed duplicated region for block: B:407:0x074b  */
    /* JADX WARNING: Removed duplicated region for block: B:411:0x075a  */
    /* JADX WARNING: Removed duplicated region for block: B:413:0x075d  */
    /* JADX WARNING: Removed duplicated region for block: B:205:0x0356  */
    /* JADX WARNING: Removed duplicated region for block: B:208:0x0373  */
    /* JADX WARNING: Removed duplicated region for block: B:249:0x0498 A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:270:0x0504 A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:337:0x061a  */
    /* JADX WARNING: Removed duplicated region for block: B:343:0x0627  */
    /* JADX WARNING: Removed duplicated region for block: B:387:0x06eb  */
    /* JADX WARNING: Removed duplicated region for block: B:401:0x073e  */
    /* JADX WARNING: Removed duplicated region for block: B:400:0x073b  */
    /* JADX WARNING: Removed duplicated region for block: B:405:0x0747  */
    /* JADX WARNING: Removed duplicated region for block: B:404:0x0744  */
    /* JADX WARNING: Removed duplicated region for block: B:411:0x075a  */
    /* JADX WARNING: Removed duplicated region for block: B:407:0x074b  */
    /* JADX WARNING: Removed duplicated region for block: B:413:0x075d  */
    /* JADX WARNING: Removed duplicated region for block: B:132:0x021a  */
    /* JADX WARNING: Removed duplicated region for block: B:184:0x02f4  */
    /* JADX WARNING: Removed duplicated region for block: B:205:0x0356  */
    /* JADX WARNING: Removed duplicated region for block: B:208:0x0373  */
    /* JADX WARNING: Removed duplicated region for block: B:249:0x0498 A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:270:0x0504 A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:337:0x061a  */
    /* JADX WARNING: Removed duplicated region for block: B:343:0x0627  */
    /* JADX WARNING: Removed duplicated region for block: B:387:0x06eb  */
    /* JADX WARNING: Removed duplicated region for block: B:400:0x073b  */
    /* JADX WARNING: Removed duplicated region for block: B:401:0x073e  */
    /* JADX WARNING: Removed duplicated region for block: B:404:0x0744  */
    /* JADX WARNING: Removed duplicated region for block: B:405:0x0747  */
    /* JADX WARNING: Removed duplicated region for block: B:407:0x074b  */
    /* JADX WARNING: Removed duplicated region for block: B:411:0x075a  */
    /* JADX WARNING: Removed duplicated region for block: B:413:0x075d  */
    /* JADX WARNING: Removed duplicated region for block: B:132:0x021a  */
    /* JADX WARNING: Removed duplicated region for block: B:184:0x02f4  */
    /* JADX WARNING: Removed duplicated region for block: B:205:0x0356  */
    /* JADX WARNING: Removed duplicated region for block: B:208:0x0373  */
    /* JADX WARNING: Removed duplicated region for block: B:249:0x0498 A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:270:0x0504 A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:337:0x061a  */
    /* JADX WARNING: Removed duplicated region for block: B:343:0x0627  */
    /* JADX WARNING: Removed duplicated region for block: B:387:0x06eb  */
    /* JADX WARNING: Removed duplicated region for block: B:401:0x073e  */
    /* JADX WARNING: Removed duplicated region for block: B:400:0x073b  */
    /* JADX WARNING: Removed duplicated region for block: B:405:0x0747  */
    /* JADX WARNING: Removed duplicated region for block: B:404:0x0744  */
    /* JADX WARNING: Removed duplicated region for block: B:411:0x075a  */
    /* JADX WARNING: Removed duplicated region for block: B:407:0x074b  */
    /* JADX WARNING: Removed duplicated region for block: B:413:0x075d  */
    /* JADX WARNING: Missing block: B:72:0x0149, code skipped:
            if (r4[r2].f.d == r5) goto L_0x014d;
     */
    /* JADX WARNING: Missing block: B:176:0x02d7, code skipped:
            if (r3[r17].f.d == r9) goto L_0x02db;
     */
    public static void a(b.g.b.h.e r38, b.g.b.d r39, java.util.ArrayList<b.g.b.h.d> r40, int r41) {
        /*
        r0 = r38;
        r10 = r39;
        r11 = r40;
        r12 = b.g.b.h.d.a.MATCH_CONSTRAINT;
        r13 = 2;
        if (r41 != 0) goto L_0x0015;
    L_0x000b:
        r1 = r0.t0;
        r2 = r0.w0;
        r15 = r1;
        r16 = r2;
        r17 = 0;
        goto L_0x001e;
    L_0x0015:
        r1 = r0.u0;
        r2 = r0.v0;
        r15 = r1;
        r16 = r2;
        r17 = 2;
    L_0x001e:
        r9 = 0;
    L_0x001f:
        if (r9 >= r15) goto L_0x078d;
    L_0x0021:
        r1 = r16[r9];
        r2 = r1.t;
        r18 = 0;
        r8 = 8;
        r4 = 1;
        if (r2 != 0) goto L_0x019e;
    L_0x002c:
        r2 = r1.o;
        r2 = r2 * 2;
        r5 = r1.a;
        r6 = r5;
        r7 = 0;
    L_0x0034:
        if (r7 != 0) goto L_0x015c;
    L_0x0036:
        r14 = r1.i;
        r14 = r14 + r4;
        r1.i = r14;
        r14 = r5.i0;
        r3 = r1.o;
        r14[r3] = r18;
        r14 = r5.h0;
        r14[r3] = r18;
        r14 = r5.c0;
        if (r14 == r8) goto L_0x0125;
    L_0x0049:
        r14 = r1.l;
        r14 = r14 + r4;
        r1.l = r14;
        r3 = r5.k(r3);
        if (r3 == r12) goto L_0x006a;
    L_0x0054:
        r3 = r1.m;
        r14 = r1.o;
        if (r14 != 0) goto L_0x005f;
    L_0x005a:
        r14 = r5.r();
        goto L_0x0067;
    L_0x005f:
        if (r14 != r4) goto L_0x0066;
    L_0x0061:
        r14 = r5.l();
        goto L_0x0067;
    L_0x0066:
        r14 = 0;
    L_0x0067:
        r3 = r3 + r14;
        r1.m = r3;
    L_0x006a:
        r3 = r1.m;
        r14 = r5.L;
        r14 = r14[r2];
        r14 = r14.d();
        r14 = r14 + r3;
        r1.m = r14;
        r3 = r5.L;
        r21 = r2 + 1;
        r3 = r3[r21];
        r3 = r3.d();
        r3 = r3 + r14;
        r1.m = r3;
        r3 = r1.n;
        r14 = r5.L;
        r14 = r14[r2];
        r14 = r14.d();
        r14 = r14 + r3;
        r1.n = r14;
        r3 = r5.L;
        r3 = r3[r21];
        r3 = r3.d();
        r3 = r3 + r14;
        r1.n = r3;
        r3 = r1.b;
        if (r3 != 0) goto L_0x00a2;
    L_0x00a0:
        r1.b = r5;
    L_0x00a2:
        r1.d = r5;
        r3 = r5.O;
        r14 = r1.o;
        r8 = r3[r14];
        if (r8 != r12) goto L_0x0125;
    L_0x00ac:
        r8 = r5.n;
        r22 = r8[r14];
        r4 = 3;
        if (r22 == 0) goto L_0x00c0;
    L_0x00b3:
        r13 = r8[r14];
        if (r13 == r4) goto L_0x00c0;
    L_0x00b7:
        r13 = r8[r14];
        r4 = 2;
        if (r13 != r4) goto L_0x00bd;
    L_0x00bc:
        goto L_0x00c0;
    L_0x00bd:
        r25 = r7;
        goto L_0x0122;
    L_0x00c0:
        r4 = r1.j;
        r13 = 1;
        r4 = r4 + r13;
        r1.j = r4;
        r4 = r5.g0;
        r13 = r4[r14];
        r20 = 0;
        r25 = (r13 > r20 ? 1 : (r13 == r20 ? 0 : -1));
        if (r25 <= 0) goto L_0x00da;
    L_0x00d0:
        r25 = r7;
        r7 = r1.k;
        r4 = r4[r14];
        r7 = r7 + r4;
        r1.k = r7;
        goto L_0x00dc;
    L_0x00da:
        r25 = r7;
    L_0x00dc:
        r4 = r5.c0;
        r7 = 8;
        if (r4 == r7) goto L_0x00f1;
    L_0x00e2:
        r3 = r3[r14];
        if (r3 != r12) goto L_0x00f1;
    L_0x00e6:
        r3 = r8[r14];
        if (r3 == 0) goto L_0x00ef;
    L_0x00ea:
        r3 = r8[r14];
        r4 = 3;
        if (r3 != r4) goto L_0x00f1;
    L_0x00ef:
        r3 = 1;
        goto L_0x00f2;
    L_0x00f1:
        r3 = 0;
    L_0x00f2:
        if (r3 == 0) goto L_0x0110;
    L_0x00f4:
        r3 = 0;
        r4 = (r13 > r3 ? 1 : (r13 == r3 ? 0 : -1));
        if (r4 >= 0) goto L_0x00fd;
    L_0x00f9:
        r3 = 1;
        r1.q = r3;
        goto L_0x0100;
    L_0x00fd:
        r3 = 1;
        r1.r = r3;
    L_0x0100:
        r3 = r1.h;
        if (r3 != 0) goto L_0x010b;
    L_0x0104:
        r3 = new java.util.ArrayList;
        r3.<init>();
        r1.h = r3;
    L_0x010b:
        r3 = r1.h;
        r3.add(r5);
    L_0x0110:
        r3 = r1.f;
        if (r3 != 0) goto L_0x0116;
    L_0x0114:
        r1.f = r5;
    L_0x0116:
        r3 = r1.g;
        if (r3 == 0) goto L_0x0120;
    L_0x011a:
        r3 = r3.h0;
        r4 = r1.o;
        r3[r4] = r5;
    L_0x0120:
        r1.g = r5;
    L_0x0122:
        r3 = r1.o;
        goto L_0x0127;
    L_0x0125:
        r25 = r7;
    L_0x0127:
        if (r6 == r5) goto L_0x012f;
    L_0x0129:
        r3 = r6.i0;
        r4 = r1.o;
        r3[r4] = r5;
    L_0x012f:
        r3 = r5.L;
        r4 = r2 + 1;
        r3 = r3[r4];
        r3 = r3.f;
        if (r3 == 0) goto L_0x014b;
    L_0x0139:
        r3 = r3.d;
        r4 = r3.L;
        r6 = r4[r2];
        r6 = r6.f;
        if (r6 == 0) goto L_0x014b;
    L_0x0143:
        r4 = r4[r2];
        r4 = r4.f;
        r4 = r4.d;
        if (r4 == r5) goto L_0x014d;
    L_0x014b:
        r3 = r18;
    L_0x014d:
        if (r3 == 0) goto L_0x0152;
    L_0x014f:
        r7 = r25;
        goto L_0x0154;
    L_0x0152:
        r3 = r5;
        r7 = 1;
    L_0x0154:
        r6 = r5;
        r4 = 1;
        r8 = 8;
        r13 = 2;
        r5 = r3;
        goto L_0x0034;
    L_0x015c:
        r3 = r1.b;
        if (r3 == 0) goto L_0x016d;
    L_0x0160:
        r4 = r1.m;
        r3 = r3.L;
        r3 = r3[r2];
        r3 = r3.d();
        r4 = r4 - r3;
        r1.m = r4;
    L_0x016d:
        r3 = r1.d;
        if (r3 == 0) goto L_0x0180;
    L_0x0171:
        r4 = r1.m;
        r3 = r3.L;
        r2 = r2 + 1;
        r2 = r3[r2];
        r2 = r2.d();
        r4 = r4 - r2;
        r1.m = r4;
    L_0x0180:
        r1.c = r5;
        r2 = r1.o;
        if (r2 != 0) goto L_0x018d;
    L_0x0186:
        r2 = r1.p;
        if (r2 == 0) goto L_0x018d;
    L_0x018a:
        r1.e = r5;
        goto L_0x0191;
    L_0x018d:
        r2 = r1.a;
        r1.e = r2;
    L_0x0191:
        r2 = r1.r;
        if (r2 == 0) goto L_0x019b;
    L_0x0195:
        r2 = r1.q;
        if (r2 == 0) goto L_0x019b;
    L_0x0199:
        r2 = 1;
        goto L_0x019c;
    L_0x019b:
        r2 = 0;
    L_0x019c:
        r1.s = r2;
    L_0x019e:
        r2 = 1;
        r1.t = r2;
        if (r11 == 0) goto L_0x01b8;
    L_0x01a3:
        r2 = r1.a;
        r2 = r11.contains(r2);
        if (r2 == 0) goto L_0x01ac;
    L_0x01ab:
        goto L_0x01b8;
    L_0x01ac:
        r29 = r9;
        r35 = r12;
        r30 = r15;
        r19 = 0;
        r23 = 2;
        goto L_0x0780;
    L_0x01b8:
        r13 = r1.a;
        r14 = r1.c;
        r8 = r1.b;
        r7 = r1.d;
        r2 = r1.e;
        r3 = r1.k;
        r4 = r0.O;
        r4 = r4[r41];
        r5 = b.g.b.h.d.a.WRAP_CONTENT;
        if (r4 != r5) goto L_0x01ce;
    L_0x01cc:
        r4 = 1;
        goto L_0x01cf;
    L_0x01ce:
        r4 = 0;
    L_0x01cf:
        if (r41 != 0) goto L_0x01ed;
    L_0x01d1:
        r5 = r2.e0;
        r6 = 1;
        if (r5 != 0) goto L_0x01d9;
    L_0x01d6:
        r23 = 1;
        goto L_0x01db;
    L_0x01d9:
        r23 = 0;
    L_0x01db:
        r24 = r9;
        r9 = 2;
        if (r5 != r6) goto L_0x01e3;
    L_0x01e0:
        r22 = 1;
        goto L_0x01e5;
    L_0x01e3:
        r22 = 0;
    L_0x01e5:
        if (r5 != r9) goto L_0x01ea;
    L_0x01e7:
        r5 = r23;
        goto L_0x0205;
    L_0x01ea:
        r5 = r23;
        goto L_0x020f;
    L_0x01ed:
        r24 = r9;
        r6 = 1;
        r9 = 2;
        r5 = r2.f0;
        if (r5 != 0) goto L_0x01f8;
    L_0x01f5:
        r22 = 1;
        goto L_0x01fa;
    L_0x01f8:
        r22 = 0;
    L_0x01fa:
        if (r5 != r6) goto L_0x01fe;
    L_0x01fc:
        r6 = 1;
        goto L_0x01ff;
    L_0x01fe:
        r6 = 0;
    L_0x01ff:
        if (r5 != r9) goto L_0x020b;
    L_0x0201:
        r5 = r22;
        r22 = r6;
    L_0x0205:
        r25 = r22;
        r22 = r5;
        r5 = 1;
        goto L_0x0214;
    L_0x020b:
        r5 = r22;
        r22 = r6;
    L_0x020f:
        r25 = r22;
        r22 = r5;
        r5 = 0;
    L_0x0214:
        r27 = r3;
        r9 = r13;
        r6 = 0;
    L_0x0218:
        if (r6 != 0) goto L_0x02ec;
    L_0x021a:
        r3 = r9.L;
        r3 = r3[r17];
        if (r5 == 0) goto L_0x0223;
    L_0x0220:
        r29 = 1;
        goto L_0x0225;
    L_0x0223:
        r29 = 4;
    L_0x0225:
        r30 = r3.d();
        r31 = r6;
        r6 = r9.O;
        r6 = r6[r41];
        if (r6 != r12) goto L_0x0239;
    L_0x0231:
        r6 = r9.n;
        r6 = r6[r41];
        if (r6 != 0) goto L_0x0239;
    L_0x0237:
        r6 = 1;
        goto L_0x023a;
    L_0x0239:
        r6 = 0;
    L_0x023a:
        r11 = r3.f;
        if (r11 == 0) goto L_0x0246;
    L_0x023e:
        if (r9 == r13) goto L_0x0246;
    L_0x0240:
        r11 = r11.d();
        r30 = r11 + r30;
    L_0x0246:
        r11 = r30;
        if (r5 == 0) goto L_0x0253;
    L_0x024a:
        if (r9 == r13) goto L_0x0253;
    L_0x024c:
        if (r9 == r8) goto L_0x0253;
    L_0x024e:
        r30 = r15;
        r29 = 8;
        goto L_0x0255;
    L_0x0253:
        r30 = r15;
    L_0x0255:
        r15 = r3.f;
        if (r15 == 0) goto L_0x0287;
    L_0x0259:
        if (r9 != r8) goto L_0x0268;
    L_0x025b:
        r32 = r2;
        r2 = r3.i;
        r15 = r15.i;
        r33 = r13;
        r13 = 6;
        r10.f(r2, r15, r11, r13);
        goto L_0x0275;
    L_0x0268:
        r32 = r2;
        r33 = r13;
        r2 = r3.i;
        r13 = r15.i;
        r15 = 8;
        r10.f(r2, r13, r11, r15);
    L_0x0275:
        if (r6 == 0) goto L_0x027b;
    L_0x0277:
        if (r5 != 0) goto L_0x027b;
    L_0x0279:
        r2 = 5;
        goto L_0x027d;
    L_0x027b:
        r2 = r29;
    L_0x027d:
        r6 = r3.i;
        r3 = r3.f;
        r3 = r3.i;
        r10.d(r6, r3, r11, r2);
        goto L_0x028b;
    L_0x0287:
        r32 = r2;
        r33 = r13;
    L_0x028b:
        if (r4 == 0) goto L_0x02bd;
    L_0x028d:
        r2 = r9.c0;
        r3 = 8;
        if (r2 == r3) goto L_0x02ab;
    L_0x0293:
        r2 = r9.O;
        r2 = r2[r41];
        if (r2 != r12) goto L_0x02ab;
    L_0x0299:
        r2 = r9.L;
        r3 = r17 + 1;
        r3 = r2[r3];
        r3 = r3.i;
        r2 = r2[r17];
        r2 = r2.i;
        r6 = 5;
        r11 = 0;
        r10.f(r3, r2, r11, r6);
        goto L_0x02ac;
    L_0x02ab:
        r11 = 0;
    L_0x02ac:
        r2 = r9.L;
        r2 = r2[r17];
        r2 = r2.i;
        r3 = r0.L;
        r3 = r3[r17];
        r3 = r3.i;
        r6 = 8;
        r10.f(r2, r3, r11, r6);
    L_0x02bd:
        r2 = r9.L;
        r3 = r17 + 1;
        r2 = r2[r3];
        r2 = r2.f;
        if (r2 == 0) goto L_0x02d9;
    L_0x02c7:
        r2 = r2.d;
        r3 = r2.L;
        r6 = r3[r17];
        r6 = r6.f;
        if (r6 == 0) goto L_0x02d9;
    L_0x02d1:
        r3 = r3[r17];
        r3 = r3.f;
        r3 = r3.d;
        if (r3 == r9) goto L_0x02db;
    L_0x02d9:
        r2 = r18;
    L_0x02db:
        if (r2 == 0) goto L_0x02e1;
    L_0x02dd:
        r9 = r2;
        r6 = r31;
        goto L_0x02e2;
    L_0x02e1:
        r6 = 1;
    L_0x02e2:
        r11 = r40;
        r15 = r30;
        r2 = r32;
        r13 = r33;
        goto L_0x0218;
    L_0x02ec:
        r32 = r2;
        r33 = r13;
        r30 = r15;
        if (r7 == 0) goto L_0x0353;
    L_0x02f4:
        r2 = r14.L;
        r3 = r17 + 1;
        r2 = r2[r3];
        r2 = r2.f;
        if (r2 == 0) goto L_0x0353;
    L_0x02fe:
        r2 = r7.L;
        r2 = r2[r3];
        r6 = r7.O;
        r6 = r6[r41];
        if (r6 != r12) goto L_0x0310;
    L_0x0308:
        r6 = r7.n;
        r6 = r6[r41];
        if (r6 != 0) goto L_0x0310;
    L_0x030e:
        r6 = 1;
        goto L_0x0311;
    L_0x0310:
        r6 = 0;
    L_0x0311:
        if (r6 == 0) goto L_0x0329;
    L_0x0313:
        if (r5 != 0) goto L_0x0329;
    L_0x0315:
        r6 = r2.f;
        r9 = r6.d;
        if (r9 != r0) goto L_0x0329;
    L_0x031b:
        r9 = r2.i;
        r6 = r6.i;
        r11 = r2.d();
        r11 = -r11;
        r13 = 5;
        r10.d(r9, r6, r11, r13);
        goto L_0x033f;
    L_0x0329:
        r13 = 5;
        if (r5 == 0) goto L_0x033f;
    L_0x032c:
        r6 = r2.f;
        r9 = r6.d;
        if (r9 != r0) goto L_0x033f;
    L_0x0332:
        r9 = r2.i;
        r6 = r6.i;
        r11 = r2.d();
        r11 = -r11;
        r15 = 4;
        r10.d(r9, r6, r11, r15);
    L_0x033f:
        r6 = r2.i;
        r9 = r14.L;
        r3 = r9[r3];
        r3 = r3.f;
        r3 = r3.i;
        r2 = r2.d();
        r2 = -r2;
        r9 = 6;
        r10.g(r6, r3, r2, r9);
        goto L_0x0354;
    L_0x0353:
        r13 = 5;
    L_0x0354:
        if (r4 == 0) goto L_0x036f;
    L_0x0356:
        r2 = r0.L;
        r3 = r17 + 1;
        r2 = r2[r3];
        r2 = r2.i;
        r4 = r14.L;
        r6 = r4[r3];
        r6 = r6.i;
        r3 = r4[r3];
        r3 = r3.d();
        r4 = 8;
        r10.f(r2, r6, r3, r4);
    L_0x036f:
        r2 = r1.h;
        if (r2 == 0) goto L_0x048e;
    L_0x0373:
        r3 = r2.size();
        r4 = 1;
        if (r3 <= r4) goto L_0x048e;
    L_0x037a:
        r6 = r1.q;
        if (r6 == 0) goto L_0x0386;
    L_0x037e:
        r6 = r1.s;
        if (r6 != 0) goto L_0x0386;
    L_0x0382:
        r6 = r1.j;
        r6 = (float) r6;
        goto L_0x0388;
    L_0x0386:
        r6 = r27;
    L_0x0388:
        r15 = r18;
        r9 = 0;
        r11 = 0;
    L_0x038c:
        if (r11 >= r3) goto L_0x048e;
    L_0x038e:
        r23 = r2.get(r11);
        r4 = r23;
        r4 = (b.g.b.h.d) r4;
        r13 = r4.g0;
        r13 = r13[r41];
        r20 = 0;
        r23 = (r13 > r20 ? 1 : (r13 == r20 ? 0 : -1));
        if (r23 >= 0) goto L_0x03c3;
    L_0x03a0:
        r13 = r1.s;
        if (r13 == 0) goto L_0x03bb;
    L_0x03a4:
        r0 = r4.L;
        r4 = r17 + 1;
        r4 = r0[r4];
        r4 = r4.i;
        r0 = r0[r17];
        r0 = r0.i;
        r23 = r2;
        r2 = 0;
        r13 = 4;
        r10.d(r4, r0, r2, r13);
        r13 = 0;
        r28 = 4;
        goto L_0x03de;
    L_0x03bb:
        r23 = r2;
        r2 = 0;
        r13 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;
        r28 = 4;
        goto L_0x03c8;
    L_0x03c3:
        r23 = r2;
        r28 = 4;
        r2 = 0;
    L_0x03c8:
        r29 = (r13 > r2 ? 1 : (r13 == r2 ? 0 : -1));
        if (r29 != 0) goto L_0x03e8;
    L_0x03cc:
        r0 = r4.L;
        r2 = r17 + 1;
        r2 = r0[r2];
        r2 = r2.i;
        r0 = r0[r17];
        r0 = r0.i;
        r4 = 8;
        r13 = 0;
        r10.d(r2, r0, r13, r4);
    L_0x03de:
        r20 = r1;
        r34 = r3;
        r35 = r12;
        r19 = 0;
        goto L_0x047e;
    L_0x03e8:
        r19 = 0;
        if (r15 == 0) goto L_0x0473;
    L_0x03ec:
        r2 = r15.L;
        r15 = r2[r17];
        r15 = r15.i;
        r31 = r17 + 1;
        r2 = r2[r31];
        r2 = r2.i;
        r0 = r4.L;
        r34 = r3;
        r3 = r0[r17];
        r3 = r3.i;
        r0 = r0[r31];
        r0 = r0.i;
        r31 = r4;
        r4 = r39.m();
        r35 = r12;
        r12 = 0;
        r4.b = r12;
        r20 = r1;
        r1 = -1082130432; // 0xffffffffbf800000 float:-1.0 double:NaN;
        r36 = (r6 > r12 ? 1 : (r6 == r12 ? 0 : -1));
        if (r36 == 0) goto L_0x0459;
    L_0x0417:
        r36 = (r9 > r13 ? 1 : (r9 == r13 ? 0 : -1));
        if (r36 != 0) goto L_0x041c;
    L_0x041b:
        goto L_0x0459;
    L_0x041c:
        r36 = (r9 > r12 ? 1 : (r9 == r12 ? 0 : -1));
        if (r36 != 0) goto L_0x042d;
    L_0x0420:
        r0 = r4.d;
        r3 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;
        r0.g(r15, r3);
        r0 = r4.d;
        r0.g(r2, r1);
        goto L_0x046f;
    L_0x042d:
        r12 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;
        if (r29 != 0) goto L_0x043c;
    L_0x0431:
        r2 = r4.d;
        r2.g(r3, r12);
        r2 = r4.d;
        r2.g(r0, r1);
        goto L_0x046f;
    L_0x043c:
        r9 = r9 / r6;
        r29 = r13 / r6;
        r9 = r9 / r29;
        r1 = r4.d;
        r1.g(r15, r12);
        r1 = r4.d;
        r12 = -1082130432; // 0xffffffffbf800000 float:-1.0 double:NaN;
        r1.g(r2, r12);
        r1 = r4.d;
        r1.g(r0, r9);
        r0 = r4.d;
        r1 = -r9;
        r0.g(r3, r1);
        goto L_0x046f;
    L_0x0459:
        r12 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;
        r9 = r4.d;
        r9.g(r15, r12);
        r9 = r4.d;
        r9.g(r2, r1);
        r2 = r4.d;
        r2.g(r0, r12);
        r0 = r4.d;
        r0.g(r3, r1);
    L_0x046f:
        r10.c(r4);
        goto L_0x047b;
    L_0x0473:
        r20 = r1;
        r34 = r3;
        r31 = r4;
        r35 = r12;
    L_0x047b:
        r9 = r13;
        r15 = r31;
    L_0x047e:
        r11 = r11 + 1;
        r4 = 1;
        r13 = 5;
        r0 = r38;
        r1 = r20;
        r2 = r23;
        r3 = r34;
        r12 = r35;
        goto L_0x038c;
    L_0x048e:
        r20 = r1;
        r35 = r12;
        r19 = 0;
        r28 = 4;
        if (r8 == 0) goto L_0x04fa;
    L_0x0498:
        if (r8 == r7) goto L_0x049c;
    L_0x049a:
        if (r5 == 0) goto L_0x04fa;
    L_0x049c:
        r0 = r33;
        r0 = r0.L;
        r0 = r0[r17];
        r1 = r14.L;
        r2 = r17 + 1;
        r1 = r1[r2];
        r0 = r0.f;
        if (r0 == 0) goto L_0x04b0;
    L_0x04ac:
        r0 = r0.i;
        r3 = r0;
        goto L_0x04b2;
    L_0x04b0:
        r3 = r18;
    L_0x04b2:
        r0 = r1.f;
        if (r0 == 0) goto L_0x04ba;
    L_0x04b6:
        r0 = r0.i;
        r6 = r0;
        goto L_0x04bc;
    L_0x04ba:
        r6 = r18;
    L_0x04bc:
        r0 = r8.L;
        r0 = r0[r17];
        r1 = r7.L;
        r1 = r1[r2];
        if (r3 == 0) goto L_0x04f0;
    L_0x04c6:
        if (r6 == 0) goto L_0x04f0;
    L_0x04c8:
        if (r41 != 0) goto L_0x04cf;
    L_0x04ca:
        r2 = r32;
        r2 = r2.Z;
        goto L_0x04d3;
    L_0x04cf:
        r2 = r32;
        r2 = r2.a0;
    L_0x04d3:
        r5 = r2;
        r4 = r0.d();
        r9 = r1.d();
        r2 = r0.i;
        r0 = r1.i;
        r11 = 7;
        r1 = r39;
        r12 = r7;
        r7 = r0;
        r13 = r8;
        r8 = r9;
        r15 = r24;
        r23 = 2;
        r9 = r11;
        r1.b(r2, r3, r4, r5, r6, r7, r8, r9);
        goto L_0x04f6;
    L_0x04f0:
        r12 = r7;
        r13 = r8;
        r15 = r24;
        r23 = 2;
    L_0x04f6:
        r29 = r15;
        goto L_0x0725;
    L_0x04fa:
        r12 = r7;
        r13 = r8;
        r15 = r24;
        r0 = r33;
        r23 = 2;
        if (r22 == 0) goto L_0x060c;
    L_0x0504:
        if (r13 == 0) goto L_0x060c;
    L_0x0506:
        r1 = r20;
        r2 = r1.j;
        if (r2 <= 0) goto L_0x0513;
    L_0x050c:
        r1 = r1.i;
        if (r1 != r2) goto L_0x0513;
    L_0x0510:
        r27 = 1;
        goto L_0x0515;
    L_0x0513:
        r27 = 0;
    L_0x0515:
        r9 = r13;
        r11 = r9;
    L_0x0517:
        if (r11 == 0) goto L_0x04f6;
    L_0x0519:
        r1 = r11.i0;
        r1 = r1[r41];
        r8 = r1;
    L_0x051e:
        if (r8 == 0) goto L_0x052b;
    L_0x0520:
        r1 = r8.c0;
        r7 = 8;
        if (r1 != r7) goto L_0x052d;
    L_0x0526:
        r1 = r8.i0;
        r8 = r1[r41];
        goto L_0x051e;
    L_0x052b:
        r7 = 8;
    L_0x052d:
        if (r8 != 0) goto L_0x053c;
    L_0x052f:
        if (r11 != r12) goto L_0x0532;
    L_0x0531:
        goto L_0x053c;
    L_0x0532:
        r20 = r8;
        r21 = r9;
        r29 = r15;
        r15 = 8;
        goto L_0x05fe;
    L_0x053c:
        r1 = r11.L;
        r1 = r1[r17];
        r2 = r1.i;
        r3 = r1.f;
        if (r3 == 0) goto L_0x0549;
    L_0x0546:
        r3 = r3.i;
        goto L_0x054b;
    L_0x0549:
        r3 = r18;
    L_0x054b:
        if (r9 == r11) goto L_0x0556;
    L_0x054d:
        r3 = r9.L;
        r4 = r17 + 1;
        r3 = r3[r4];
        r3 = r3.i;
        goto L_0x056b;
    L_0x0556:
        if (r11 != r13) goto L_0x056b;
    L_0x0558:
        if (r9 != r11) goto L_0x056b;
    L_0x055a:
        r3 = r0.L;
        r4 = r3[r17];
        r4 = r4.f;
        if (r4 == 0) goto L_0x0569;
    L_0x0562:
        r3 = r3[r17];
        r3 = r3.f;
        r3 = r3.i;
        goto L_0x056b;
    L_0x0569:
        r3 = r18;
    L_0x056b:
        r1 = r1.d();
        r4 = r11.L;
        r5 = r17 + 1;
        r4 = r4[r5];
        r4 = r4.d();
        if (r8 == 0) goto L_0x0590;
    L_0x057b:
        r6 = r8.L;
        r6 = r6[r17];
        r7 = r6.i;
        r20 = r6;
        r6 = r11.L;
        r6 = r6[r5];
        r6 = r6.i;
    L_0x0589:
        r37 = r20;
        r20 = r6;
        r6 = r37;
        goto L_0x05a8;
    L_0x0590:
        r6 = r14.L;
        r6 = r6[r5];
        r6 = r6.f;
        if (r6 == 0) goto L_0x059d;
    L_0x0598:
        r7 = r6.i;
        r20 = r6;
        goto L_0x05a1;
    L_0x059d:
        r20 = r6;
        r7 = r18;
    L_0x05a1:
        r6 = r11.L;
        r6 = r6[r5];
        r6 = r6.i;
        goto L_0x0589;
    L_0x05a8:
        if (r6 == 0) goto L_0x05af;
    L_0x05aa:
        r6 = r6.d();
        r4 = r4 + r6;
    L_0x05af:
        if (r9 == 0) goto L_0x05ba;
    L_0x05b1:
        r6 = r9.L;
        r6 = r6[r5];
        r6 = r6.d();
        r1 = r1 + r6;
    L_0x05ba:
        if (r2 == 0) goto L_0x0532;
    L_0x05bc:
        if (r3 == 0) goto L_0x0532;
    L_0x05be:
        if (r7 == 0) goto L_0x0532;
    L_0x05c0:
        if (r20 == 0) goto L_0x0532;
    L_0x05c2:
        if (r11 != r13) goto L_0x05cc;
    L_0x05c4:
        r1 = r13.L;
        r1 = r1[r17];
        r1 = r1.d();
    L_0x05cc:
        r6 = r1;
        if (r11 != r12) goto L_0x05da;
    L_0x05cf:
        r1 = r12.L;
        r1 = r1[r5];
        r1 = r1.d();
        r24 = r1;
        goto L_0x05dc;
    L_0x05da:
        r24 = r4;
    L_0x05dc:
        if (r27 == 0) goto L_0x05e1;
    L_0x05de:
        r26 = 8;
        goto L_0x05e3;
    L_0x05e1:
        r26 = 5;
    L_0x05e3:
        r5 = 1056964608; // 0x3f000000 float:0.5 double:5.222099017E-315;
        r1 = r39;
        r4 = 5;
        r29 = r15;
        r15 = 5;
        r4 = r6;
        r6 = r7;
        r21 = 8;
        r7 = r20;
        r20 = r8;
        r15 = 8;
        r8 = r24;
        r21 = r9;
        r9 = r26;
        r1.b(r2, r3, r4, r5, r6, r7, r8, r9);
    L_0x05fe:
        r1 = r11.c0;
        if (r1 == r15) goto L_0x0604;
    L_0x0602:
        r9 = r11;
        goto L_0x0606;
    L_0x0604:
        r9 = r21;
    L_0x0606:
        r11 = r20;
        r15 = r29;
        goto L_0x0517;
    L_0x060c:
        r29 = r15;
        r1 = r20;
        r15 = 8;
        if (r25 == 0) goto L_0x0725;
    L_0x0614:
        if (r13 == 0) goto L_0x0725;
    L_0x0616:
        r2 = r1.j;
        if (r2 <= 0) goto L_0x0621;
    L_0x061a:
        r1 = r1.i;
        if (r1 != r2) goto L_0x0621;
    L_0x061e:
        r27 = 1;
        goto L_0x0623;
    L_0x0621:
        r27 = 0;
    L_0x0623:
        r9 = r13;
        r11 = r9;
    L_0x0625:
        if (r11 == 0) goto L_0x06d3;
    L_0x0627:
        r1 = r11.i0;
        r1 = r1[r41];
    L_0x062b:
        if (r1 == 0) goto L_0x0636;
    L_0x062d:
        r2 = r1.c0;
        if (r2 != r15) goto L_0x0636;
    L_0x0631:
        r1 = r1.i0;
        r1 = r1[r41];
        goto L_0x062b;
    L_0x0636:
        if (r11 == r13) goto L_0x06bd;
    L_0x0638:
        if (r11 == r12) goto L_0x06bd;
    L_0x063a:
        if (r1 == 0) goto L_0x06bd;
    L_0x063c:
        if (r1 != r12) goto L_0x0641;
    L_0x063e:
        r8 = r18;
        goto L_0x0642;
    L_0x0641:
        r8 = r1;
    L_0x0642:
        r1 = r11.L;
        r1 = r1[r17];
        r2 = r1.i;
        r3 = r9.L;
        r4 = r17 + 1;
        r3 = r3[r4];
        r3 = r3.i;
        r1 = r1.d();
        r5 = r11.L;
        r5 = r5[r4];
        r5 = r5.d();
        if (r8 == 0) goto L_0x066e;
    L_0x065e:
        r6 = r8.L;
        r6 = r6[r17];
        r7 = r6.i;
        r15 = r6.f;
        if (r15 == 0) goto L_0x066b;
    L_0x0668:
        r15 = r15.i;
        goto L_0x067f;
    L_0x066b:
        r15 = r18;
        goto L_0x067f;
    L_0x066e:
        r6 = r12.L;
        r6 = r6[r17];
        if (r6 == 0) goto L_0x0677;
    L_0x0674:
        r7 = r6.i;
        goto L_0x0679;
    L_0x0677:
        r7 = r18;
    L_0x0679:
        r15 = r11.L;
        r15 = r15[r4];
        r15 = r15.i;
    L_0x067f:
        if (r6 == 0) goto L_0x0689;
    L_0x0681:
        r6 = r6.d();
        r6 = r6 + r5;
        r20 = r6;
        goto L_0x068b;
    L_0x0689:
        r20 = r5;
    L_0x068b:
        r5 = r9.L;
        r4 = r5[r4];
        r4 = r4.d();
        r4 = r4 + r1;
        if (r27 == 0) goto L_0x0699;
    L_0x0696:
        r24 = 8;
        goto L_0x069b;
    L_0x0699:
        r24 = 4;
    L_0x069b:
        if (r2 == 0) goto L_0x06b6;
    L_0x069d:
        if (r3 == 0) goto L_0x06b6;
    L_0x069f:
        if (r7 == 0) goto L_0x06b6;
    L_0x06a1:
        if (r15 == 0) goto L_0x06b6;
    L_0x06a3:
        r5 = 1056964608; // 0x3f000000 float:0.5 double:5.222099017E-315;
        r1 = r39;
        r26 = 4;
        r6 = r7;
        r7 = r15;
        r15 = r8;
        r8 = r20;
        r20 = r9;
        r9 = r24;
        r1.b(r2, r3, r4, r5, r6, r7, r8, r9);
        goto L_0x06bb;
    L_0x06b6:
        r15 = r8;
        r20 = r9;
        r26 = 4;
    L_0x06bb:
        r8 = r15;
        goto L_0x06c2;
    L_0x06bd:
        r20 = r9;
        r26 = 4;
        r8 = r1;
    L_0x06c2:
        r1 = r11.c0;
        r2 = 8;
        if (r1 == r2) goto L_0x06ca;
    L_0x06c8:
        r9 = r11;
        goto L_0x06cc;
    L_0x06ca:
        r9 = r20;
    L_0x06cc:
        r11 = r8;
        r15 = 8;
        r28 = 4;
        goto L_0x0625;
    L_0x06d3:
        r1 = r13.L;
        r1 = r1[r17];
        r0 = r0.L;
        r0 = r0[r17];
        r0 = r0.f;
        r2 = r12.L;
        r3 = r17 + 1;
        r11 = r2[r3];
        r2 = r14.L;
        r2 = r2[r3];
        r15 = r2.f;
        if (r0 == 0) goto L_0x0714;
    L_0x06eb:
        if (r13 == r12) goto L_0x06fa;
    L_0x06ed:
        r2 = r1.i;
        r0 = r0.i;
        r1 = r1.d();
        r3 = 5;
        r10.d(r2, r0, r1, r3);
        goto L_0x0714;
    L_0x06fa:
        if (r15 == 0) goto L_0x0714;
    L_0x06fc:
        r2 = r1.i;
        r3 = r0.i;
        r4 = r1.d();
        r5 = 1056964608; // 0x3f000000 float:0.5 double:5.222099017E-315;
        r6 = r11.i;
        r7 = r15.i;
        r8 = r11.d();
        r9 = 5;
        r1 = r39;
        r1.b(r2, r3, r4, r5, r6, r7, r8, r9);
    L_0x0714:
        if (r15 == 0) goto L_0x0725;
    L_0x0716:
        if (r13 == r12) goto L_0x0725;
    L_0x0718:
        r0 = r11.i;
        r1 = r15.i;
        r2 = r11.d();
        r2 = -r2;
        r3 = 5;
        r10.d(r0, r1, r2, r3);
    L_0x0725:
        if (r22 != 0) goto L_0x0729;
    L_0x0727:
        if (r25 == 0) goto L_0x0780;
    L_0x0729:
        if (r13 == 0) goto L_0x0780;
    L_0x072b:
        if (r13 == r12) goto L_0x0780;
    L_0x072d:
        r0 = r13.L;
        r1 = r0[r17];
        r2 = r12.L;
        r3 = r17 + 1;
        r2 = r2[r3];
        r4 = r1.f;
        if (r4 == 0) goto L_0x073e;
    L_0x073b:
        r4 = r4.i;
        goto L_0x0740;
    L_0x073e:
        r4 = r18;
    L_0x0740:
        r5 = r2.f;
        if (r5 == 0) goto L_0x0747;
    L_0x0744:
        r5 = r5.i;
        goto L_0x0749;
    L_0x0747:
        r5 = r18;
    L_0x0749:
        if (r14 == r12) goto L_0x075a;
    L_0x074b:
        r5 = r14.L;
        r5 = r5[r3];
        r5 = r5.f;
        if (r5 == 0) goto L_0x0757;
    L_0x0753:
        r5 = r5.i;
        r18 = r5;
    L_0x0757:
        r6 = r18;
        goto L_0x075b;
    L_0x075a:
        r6 = r5;
    L_0x075b:
        if (r13 != r12) goto L_0x0761;
    L_0x075d:
        r1 = r0[r17];
        r2 = r0[r3];
    L_0x0761:
        if (r4 == 0) goto L_0x0780;
    L_0x0763:
        if (r6 == 0) goto L_0x0780;
    L_0x0765:
        r5 = 1056964608; // 0x3f000000 float:0.5 double:5.222099017E-315;
        r0 = r1.d();
        r7 = r12.L;
        r3 = r7[r3];
        r8 = r3.d();
        r3 = r1.i;
        r7 = r2.i;
        r9 = 5;
        r1 = r39;
        r2 = r3;
        r3 = r4;
        r4 = r0;
        r1.b(r2, r3, r4, r5, r6, r7, r8, r9);
    L_0x0780:
        r9 = r29 + 1;
        r13 = 2;
        r0 = r38;
        r11 = r40;
        r15 = r30;
        r12 = r35;
        goto L_0x001f;
    L_0x078d:
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: b.d.i.a(b.g.b.h.e, b.g.b.d, java.util.ArrayList, int):void");
    }

    public static n b(d dVar, int i, ArrayList<n> arrayList, n nVar) {
        int i2;
        if (i == 0) {
            i2 = dVar.j0;
        } else {
            i2 = dVar.k0;
        }
        int i3 = 0;
        if (i2 != -1 && (nVar == null || i2 != nVar.b)) {
            int i4 = 0;
            while (i4 < arrayList.size()) {
                n nVar2 = (n) arrayList.get(i4);
                if (nVar2.b == i2) {
                    if (nVar != null) {
                        nVar.d(i, nVar2);
                        arrayList.remove(nVar);
                    }
                    nVar = nVar2;
                } else {
                    i4++;
                }
            }
        } else if (i2 != -1) {
            return nVar;
        }
        if (nVar == null) {
            if (dVar instanceof h) {
                int i5;
                h hVar = (h) dVar;
                for (int i6 = 0; i6 < hVar.m0; i6++) {
                    d dVar2 = hVar.l0[i6];
                    if (i == 0) {
                        i5 = dVar2.j0;
                        if (i5 != -1) {
                            break;
                        }
                    }
                    if (i == 1) {
                        i5 = dVar2.k0;
                        if (i5 != -1) {
                            break;
                        }
                    }
                }
                i5 = -1;
                if (i5 != -1) {
                    for (int i7 = 0; i7 < arrayList.size(); i7++) {
                        n nVar3 = (n) arrayList.get(i7);
                        if (nVar3.b == i5) {
                            nVar = nVar3;
                            break;
                        }
                    }
                }
            }
            if (nVar == null) {
                nVar = new n(i);
            }
            arrayList.add(nVar);
        }
        if (nVar.a(dVar)) {
            if (dVar instanceof f) {
                f fVar = (f) dVar;
                c cVar = fVar.o0;
                if (fVar.p0 == 0) {
                    i3 = 1;
                }
                cVar.b(i3, arrayList, nVar);
            }
            if (i == 0) {
                dVar.j0 = nVar.b;
                dVar.D.b(i, arrayList, nVar);
                dVar.F.b(i, arrayList, nVar);
            } else {
                dVar.k0 = nVar.b;
                dVar.E.b(i, arrayList, nVar);
                dVar.H.b(i, arrayList, nVar);
                dVar.G.b(i, arrayList, nVar);
            }
            dVar.K.b(i, arrayList, nVar);
        }
        return nVar;
    }

    public static n c(ArrayList<n> arrayList, int i) {
        int size = arrayList.size();
        for (int i2 = 0; i2 < size; i2++) {
            n nVar = (n) arrayList.get(i2);
            if (i == nVar.b) {
                return nVar;
            }
        }
        return null;
    }

    public static boolean d(a aVar, a aVar2, a aVar3, a aVar4) {
        a aVar5 = a.MATCH_PARENT;
        a aVar6 = a.WRAP_CONTENT;
        a aVar7 = a.FIXED;
        Object obj = (aVar3 == aVar7 || aVar3 == aVar6 || (aVar3 == aVar5 && aVar != aVar6)) ? 1 : null;
        Object obj2 = (aVar4 == aVar7 || aVar4 == aVar6 || (aVar4 == aVar5 && aVar2 != aVar6)) ? 1 : null;
        return (obj == null && obj2 == null) ? false : true;
    }
}
